package com.ems.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ems.vo.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 报警/故障
 * </p>
 * @author WuZH
 * @since 2023-10-24
 */
@Data
@TableName ("alarm_info")
@ApiModel (value = "AlarmEntity对象", description = "报警/故障")
public class AlarmEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("报警Id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("故障名称，来自于故障数据")
    @TableField ("alarmTitle")
    private String alarmTitle;

    @ApiModelProperty ("故障状态，默认新增为故障运行中，待维保人员修复后手动更改默认1，产生故障 0，故障已解决")
    @TableField ("status")
    private Integer status;

    @ApiModelProperty ("故障类型")
    @TableField ("alarmType")
    private String alarmType;

    @ApiModelProperty ("警告级别")
    @TableField ("alarmLevel")
    private String alarmLevel;

    @ApiModelProperty ("报警设备类型 1、BMS 2、PCS")
    @TableField ("type")
    private Integer type;

    @ApiModelProperty ("子设备地址")
    @TableField ("deviceAddress")
    private String deviceAddress;

    @ApiModelProperty ("所属电站")
    @TableField ("stationId")
    private String stationId;

    @TableField ("createTime")
    private Date createTime;

    @TableField ("changeTime")
    private Date changeTime;

    @TableField ("isUsed")
    private Integer isUsed;

}
